<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('Member/index')}>"><{:L('_menu_member')}></a></li>
      	<li class="active"><{:L('_menu_mentors')}></li>
    </ol>
    <form class="form-inline" method="post" action="<{:U('Mentors/index')}>">
  		<div class="form-group">
    		<label>Nickname</label>
    		<input type="text" class="form-control input-sm" name="nickname" value="<{$nickname}>">
  		</div>
  		<div class="form-group">
    		<label>City</label>
    		<input type="text" class="form-control input-sm" name="city" value="<{$city}>">
  		</div>
  		<div class="form-group">
    		<label>State</label>
    		<select name="state" id="state" class="form-control">
				<option value="">--select--</option>
				<volist name="stateList" id="vo">
				<option value="<{$vo.name}>"><{$vo.name}></option>
				</volist>
			</select>
  		</div>
  		<div class="form-group">
    		<label>Zip code</label>
    		<input type="text" class="form-control input-sm" name="code" value="<{$code}>">
  		</div>
		<button type="submit" class="btn btn-default btn-sm">Search</button>
		<a href="<{:U('Mentors/index')}>" class="btn btn-default btn-sm">Reset</a>
	</form>

	<p></p>
	<form id="ajaxForm" method="post" action="<{:U('Mentors/del')}>" name="form1" class="form-horizontal form-validata">
	<TABLE class="table table-hover table-bordered" border="0" cellSpacing="0" cellPadding="0" width="100%">
	  <THEAD>
		<tr>
		 <!--  <TH><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/> <{:L("_public_select")}></TH> -->
		  <TH>ID</TH>
		  <TH>Avatar</TH>		  
		  <TH>Nickname</TH>
		  <TH>Training program</TH>
		  <TH>Gender</TH>
		  <TH>birthday</TH>
		  <TH>Phone</TH>
		  <TH>Address</TH>
		  <TH>Status</TH>
		  <TH>Action</TH>
		</tr>
	  </THEAD>
	  <TBODY>             
			<volist name="list" id="vo">
			<tr>
			<!-- <td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>" id="<{$vo.id}>"></td> -->
			<td><{$vo.userid}></td>
			<td><img src="<{$vo.face|getFace=###}>" class="avatar"></td>
			<td><a href="<{:U('Mentors/detail', array('id'=>$vo['id']))}>"><{$vo.nickname}></a></td>
			<td class="train"><volist name="vo.trainItem" id="f">
				<span><{$f.name}></span>
				</volist></td>
            <td><{$vo.gender}></td>
            <td><{$vo.birthday}></td>
            <td><{$vo.phone}></td>
            <td><{$vo.address}>,<br/><{$vo.city}>,<{$vo.state}>,<{$vo.zip}></td>
            <td>
            <eq name="vo.status" value="1">
            Yes
			<else/>
			<font color="red">No</font>
			</eq>
			</td>
			<td>
			  	<a href="<{:U('Mentors/detail', array('id'=>$vo['id']))}>" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-edit"></i> edit</a>
			</td>
			</tr>
			</volist>
	  </TBODY>
	</TABLE>

	<div class="row">
		<div class="col-md-6">
			<!-- <button class="btn btn-info btn-sm" onClick="if(!confirm('Cannot be recovered after deletion!'))return false;"><i class="glyphicon glyphicon-trash"></i> Delete selected message</button> -->
		</div>
		
		<div class="col-md-6">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
	</form>

</div>


<input type="hidden" id="menu_action" value="user" />
